package com.salmon.study.dubbo.consumer.service;

import com.salmon.study.dubbo.api.HelloService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Service;

@Service
public class DemoService {

    @Reference(version = HelloService.API_VERSION)
    private HelloService helloService;

    public String testDubbo(String message) {
        return helloService.sayHello(message);
    }
}
